Skip to content

ls: Use rustc-hash at colors#10700

Open
oech3 wants to merge 1 commit intouutils:mainfrom
oech3:lscolh
Open

ls: Use rustc-hash at colors#10700
oech3 wants to merge 1 commit intouutils:mainfrom
oech3:lscolh

Conversation

@oech3
Copy link
Contributor

@oech3 oech3 commented Feb 4, 2026

No description provided.

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@sylvestre
Copy link
Contributor

some jobs are failing

@oech3 oech3 force-pushed the lscolh branch 2 times, most recently from a5e44a1 to 9c1d041 Compare February 4, 2026 07:18
@oech3

This comment was marked as resolved.

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 4, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing oech3:lscolh (5560106) with main (26a29ca)

Summary

✅ 284 untouched benchmarks
⏩ 38 skipped benchmarks1

Footnotes

  1. 38 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@oech3 oech3 marked this pull request as ready for review February 4, 2026 11:12
@oech3
Copy link
Contributor Author

oech3 commented Feb 4, 2026

Really 0% perf change. Just for binary size.

@sylvestre
Copy link
Contributor

Really 0% perf change. Just for binary size.

do you have the numbers ?

@oech3
Copy link
Contributor Author

oech3 commented Feb 4, 2026

stripped, current --release: 2172960 -> 2171200

// It's possible a simple vector linear(binary?) search implementation would be even faster.
#[cfg(unix)]
uid_cache: FxHashMap<u32, String>,
uid_cache: HashMap<u32, String>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that expected?

Copy link
Contributor Author

@oech3 oech3 Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Because I took shadowing approach

use rustc_hash::FxHashMap as HashMap;
use rustc_hash::FxHashSet as HashSet;

for the case we swap it in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants